<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 14-3-20
  Time: 下午5:30
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@include file="taglib.jsp"%>
<div id="head_line"></div>
<div id="head"><a href="index.jsp" style="border: none;"><img src="../../img/logo.gif" style="border: none;"/></a>
    <div id="login">
        <c:if test="${session.person != null}">
                <span style="font-size:14px; font-family:'微软雅黑'; color: #ffffff; position: absolute;top: 3px;right: 22%;">
                    &nbsp&nbsp你好！&nbsp&nbsp
                      <a href="login.jsp">登陆</a>
                </span>

        </c:if>
        <%--<a href="###" id="regist">注册</a>--%>
        <c:if test="${session.person != null}">
                <span style="font-family:'微软雅黑'; color: #ffffff; position: absolute;top: 3px;right: 18%;">欢迎 ${person.userName}&nbsp

                <a href="Login!loginOut.action" id="regist">退出</a>
                </span>
        </c:if>
    </div>
</div>
<div id="left">
    <ul>
        <li>
            <a href="/page/file/findStudent.jsp"
               style="border-left:1px #ffffff solid; border-right: 1px #ffffff solid;">新生查询</a>
        </li>
        <li>
            <a href="/page/dailyManagement/dailyIndex.jsp"
               style=" border-right: 1px #ffffff solid;">日常管理</a>
        </li>
        <li>
            <a href="/page/dormitoryManagement/dormitoryIndex.jsp"
               style=" border-right: 1px #ffffff solid;">宿舍管理</a>
        </li>
        <li>
            <a href="/page/mailboxManagement/mailboxIndex.jsp"
               style=" border-right: 1px #ffffff solid;">信箱管理</a>
        </li>
        <li>
            <a href="/page/maintainingManagement/maintainingIndex.jsp"
               style="border-left:1px #ffffff solid; border-right: 1px #ffffff solid;">报修管理</a>
        </li>
        <s:if test="#session.person.powerGroup.powerGroup == '维修师傅' || #session.person.powerGroup.powerGroup == '管理员'
        || #session.person.powerGroup.powerGroup == '宿舍管理部'">
            <li>
                <a href="/page/searchManagement/searchIndex.jsp"
                   style=" border-right: 1px #ffffff solid;">检索管理</a>
            </li>
        </s:if>
        <s:if test="#session.person.powerGroup.powerGroup == '宿舍管理部' || #session.person.powerGroup.powerGroup == '管理员'">
            <li>
                <a href="/page/expenseManagement/expenseIndex.jsp"
                   style=" border-right: 1px #ffffff solid;">费用管理</a>
            </li>
            <li>
                <a href="FileDownload!getFileList.action"
                   style="border-left:1px #ffffff solid; border-right: 1px #ffffff solid;">模板管理</a>
            </li>
        </s:if>
        <s:if test="#session.person.powerGroup.powerGroup == '管理员'">
            <li>
                <a href="FileDownload!getFileList.action"
                   style="border-left:1px #ffffff solid; border-right: 1px #ffffff solid;">模板管理</a>
            </li>
            <li>
                <a href="Information!fileList.action"
                   style="border-left:1px #ffffff solid; border-right: 1px #ffffff solid;">通知管理</a>
            </li>
            <li>
                <a href="/page/file/db.jsp"
                   style="border-left:1px #ffffff solid; border-right: 1px #ffffff solid;">数据库管理</a>
            </li>
        </s:if>
    </ul>
</div>
